SeqQueue = require 'seq-queue'

queue = SeqQueue.createQueue(1000)

queue.push (task)-> 
    setTimeout (()->
        console.log('hello')
        task.done()
    ), 500


queue.push (task)->
    console.log 'world'
    task.done()

# setInterval (()->
#     console.log 123132131
#     ),1000